<template>
  <svg :style="{ height: height + 'px', width: width + 'px' }">
    <use :xlink:href="prefix + name" :fill="color"></use>
  </svg>
</template>
<script setup lang="ts">
defineProps({
  prefix: {
    type: String,
    default: "#icon-"
  },
  name: {
    type: String,
    default: ""
  },
  color: {
    type: String,
    default: ""
  },
  width: {
    type: Number || String,
    default: 30
  },
  height: {
    type: Number || String,
    default: 30
  }
});
</script>

<style scoped></style>
